#ifndef _SERVOS_H_
#define _SERVOS_H_

#include "SerialWrapper.h"
#include "ServoControler.h"

#include <boost/thread/thread.hpp>

class Servos : public SerialWrapper
{
	public:
		Servos(int ResetGpioNumber, short ComNum, int BaudRate);
		~Servos();
		void WriteToBus(char* Message, int MessageSize);

		void ResetActuartors();

		void Run();
		void IterationsThread();
		void Stop();

		int m_ResetGpioNumber;
		ServoControler * m_PanServo;

		int m_ResetGpioFd;
		bool m_shallStop;

		boost::thread * m_Thread;

};

#endif
